my_list = [224,12,344,22,345,1]
def numMaxOrMin (list) :

    max_value = max(list)
    min_value = min(list)
    print(f"列表中最大值为：{max_value},最小值为{min_value}")

numMaxOrMin(my_list)